import { request } from "@/utils/service"
import type * as Company from "./types"

/** 增&改 */
export function updateCompanyApi(data: Company.UpdateCompanyRequestData) {
  return request({
    url: "company",
    method: "post",
    data
  })
}

/** 查 */
export function getCompanyApi() {
  return request<Company.GetCompanyResponeseDetailData>({
    url: "company",
    method: "get"
  })
}
